home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / quicktime / goodies / qtframestepper / qtframestepper.h < prev    next >
Encoding:
Text File  |  2000-06-23  |  1.2 KB  |  54 lines

  1. //////////
  2. //
  3. //    File:        QTFrameStepper.h
  4. //
  5. //    Contains:    Functions to step frame-by-frame through a QuickTime movie.
  6. //
  7. //    Written by:    Tim Monroe
  8. //
  9. //    Copyright:    © 1997 by Apple Computer, Inc., all rights reserved.
  10. //
  11. //    Change History (most recent first):
  12. //
  13. //       <1>         12/22/97    rtm        first file
  14. //       
  15. //////////
  16.  
  17. //////////
  18. // header files
  19. //////////
  20.  
  21. #ifndef __MOVIES__
  22. #include <Movies.h>
  23. #endif
  24.  
  25. #ifndef __FIXMATH__
  26. #include <FixMath.h>
  27. #endif
  28.  
  29. //////////
  30. // constants
  31. //////////
  32.  
  33. #define kBogusStartingTime    -1            // an invalid starting time
  34.  
  35.  
  36. //////////
  37. // function prototypes
  38. //////////
  39.  
  40. static OSErr                QTStep_GetStartTimeOfFirstVideoSample (Movie theMovie, TimeValue *theTime);
  41. static OSErr                QTStep_DrawVideoSampleAtTime (Movie theMovie, TimeValue theTime);
  42. static OSErr                QTStep_DrawVideoSampleNextOrPrev (Movie theMovie, Fixed theRate);
  43.  
  44. OSErr                        QTStep_GoToFirstVideoSample (Movie theMovie);
  45. OSErr                        QTStep_GoToNextVideoSample (Movie theMovie);
  46. OSErr                        QTStep_GoToPrevVideoSample (Movie theMovie);
  47.  
  48. OSErr                        QTStep_MCGoToFirstVideoSample (MovieController theMC);
  49. OSErr                        QTStep_MCGoToNextVideoSample (MovieController theMC);
  50. OSErr                        QTStep_MCGoToPrevVideoSample (MovieController theMC);
  51.  
  52. long                        QTStep_GetFrameCount (Track theTrack);
  53.  
  54.